<template>
    <el-select>
        <el-option
                v-for="item in dictItems"
                :key="item.value"
                :label="item.label"
                :value="item.value"
                :disabled="item.disabled"
        >
        </el-option>
    </el-select>
</template>
<script lang="ts" setup>
    import {computed, defineProps, onMounted, ref} from "vue";
    import service, {DictItem} from "@/api/sys/SysDictItemApi";
    import {useStore} from "vuex";
    import dictUtils from "../common/DictUtils";

    let props = defineProps(['code']);
    //数据字典下拉选项缓存
    const store = useStore();
    const dictItems = dictUtils.getSelectDictItemByCode(props.code)
</script>
<style lang="scss" scoped>
</style>

